﻿using Android.App;
using Android.Content;
using Android.Widget;
using Android.OS;

namespace MuseumsBC.Activities
{
    [Activity(Label = "MuseumsBC")]
    public class FirstActivity : Activity
    {
        int count = 10;

        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            SetContentView(Resource.Layout.Main);

            var showSecond = FindViewById<Button>(Resource.Id.showSecond);
            showSecond.Click += (sender, e) =>
                                    {
                                        var second = new Intent(this, typeof(SecondActivity));
                                        second.PutExtra("FirstData", "data from firstActivity");
                                        StartActivity(second);
                                    };
        }

    }
}

